# 开始
FROM python:3.9.2-alpine3.13

# 安装支持
RUN \
    sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
    apk update && \
    apk add build-base postgresql-dev

# 代码添加到code文件夹
ADD . /opt/instances/tilemap_pkg_services
# 设置code文件夹是工作目录
WORKDIR /opt/instances/tilemap_pkg_services

# 安装依赖
RUN pip install -r requirements.txt

# 启动命令
ENTRYPOINT ["python", "app.py"]
# 结束
